package cn.gaily.eduservice.feignclient;

import cn.gaily.commonutils.R;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Component
@FeignClient(name = "serviceVod",fallback = VodFileDegradeFeignClient.class)
public interface VodClient {
    @ApiOperation(value = "根据视频id删除阿里云视频")
    @DeleteMapping("/eduvod/video/removeAliyVideo/{id}")
    public R removeAliyVideo(@PathVariable("id") String id);

    @ApiOperation(value = "删除多个视频")
    @DeleteMapping("/eduvod/video/removeBatch")
    public R deleteBatch(@RequestParam("videoIdList") List<String> videoIdList);
}
